package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_exception_log" )
public class ExceptionLog  implements Serializable {

	private static final long serialVersionUID =  3258151651543833241L;

	/**
	 * 唯一uid
	 */
	@Id
   	@Column(name = "uid" )
	private String uid;

	/**
	 * 异常对象json格式
	 */
   	@Column(name = "exception_json" )
	private String exceptionJson;

	/**
	 * 异常信息
	 */
   	@Column(name = "exception_message" )
	private String exceptionMessage;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * ip地址
	 */
   	@Column(name = "ip" )
	private String ip;

	/**
	 * ip来源
	 */
   	@Column(name = "ip_source" )
	private String ipSource;

	/**
	 * 请求方法
	 */
   	@Column(name = "method" )
	private String method;

	/**
	 * 方法描述
	 */
   	@Column(name = "operation" )
	private String operation;

	/**
	 * 请求参数
	 */
   	@Column(name = "params" )
	private String params;

}
